<!DOCTYPE html>
<html>
<head>
  <title>Kuztuscms</title>
  <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
  <![endif]-->
  <%= stylesheet_link_tag    "kuztuscms/application", :media => "all" %>
  <%= javascript_include_tag "kuztuscms/application" %>
  <%= yield :javascripts %>
  <%= yield :stylesheets %>
  <%= csrf_meta_tags %>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
  <div class="navbar navbar-fixed-top">
    <div class="navbar-inner">
      <div class="container">
        <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </a>
        <%= link_to 'KuztusCMS', kuztuscms.root_url, :class => 'brand' %>
        <div class="nav-collapse">
          <ul class="nav">
            <li><%= link_to 'Pages', kuztuscms.pages_url %></li>
            <li><%= link_to 'Articles', kuztuscms.articles_url %></li>
            <li><%= link_to 'Layouts', kuztuscms.layouts_url %></li>
            <li><%= link_to 'Templates', kuztuscms.templates_url %></li>
            <li><%= link_to 'Settings', kuztuscms.settings_url %></li>
            <li><%= link_to 'Users', kuztuscms.users_url %></li>
          </ul>
          <ul class="nav pull-right">
            <li><%= link_to 'Sign out', kuztuscms.destroy_user_session_url, :method => :delete %> </li>
          </ul>
        </div>
      </div>
    </div>
  </div>
  <div class=container>
    <div class=row>
      <div class=span12>
        <% if alert %>
          <div class="alert"> <a class="close" data-dismiss="alert">×</a> <%= alert %> </div>
        <% end %>
        <% if notice %>
          <div class="alert alert-info"> <a class="close" data-dismiss="alert">×</a> <%= notice %> </div>
        <% end %>

        <%= yield %>
      </div>
    </div>
  </div>

</body>
</html>
